<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('UPS巡检记录单新增及修改')" />
	<th:block th:include="include :: businessCSS" />
</head>
<body class="no-skin">
<div class="main-container" id="main-container">
	<div class="main-content">
	<form class="layui-form head-form">
	    <div class="north">
			<th:block th:include="include :: business_btn" />
	        <th:block th:include="include :: business_tpl('top')" />
<!-- 	    定制内容开始 -->
			<!-- 静态表格 -->
			<div style="margin:0 10px">
			  	<table class="layui-table" lay-size="sm">
				    <thead>
				      <tr>
				        <th>序号</th>
				        <th colspan="2">检测项目</th>
				        <th colspan="6">检测情况、测试参数</th>
				        <th>结果</th>
				        <th>备注</th>
				      </tr> 
				    </thead>
				    <tbody>
				      <tr>
				        <td class="table-title" rowspan="2">1</td>
				        <td class="table-title" rowspan="2">环境</td>
				        <td class="table-title text_l">温度</td>
				        <td colspan="6"><input type="text" id="vJcCsWdHj" name="vJcCsWdHj" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgWdHj" name="vJgWdHj" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzWdHj" name="vBzWdHj" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title text_l">通风</td>
				        <td colspan="6"><input type="text" id="vJcCsTfHj" name="vJcCsTfHj" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgTfHj" name="vJgTfHj" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzTfHj" name="vBzTfHj" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title" rowspan="2">2</td>
				        <td class="table-title" rowspan="2">加载</td>
				        <td class="table-title text_l">输出电压/电流</td>
				        <td colspan="2"><input type="text" id="vJcCsJzDy1" name="vJcCsJzDy1" autocomplete="off" class="layui-input"></td>
				        <td colspan="2"><input type="text" id="vJcCsJzDy2" name="vJcCsJzDy2" autocomplete="off" class="layui-input"></td>
				        <td colspan="2"><input type="text" id="vJcCsJzDy3" name="vJcCsJzDy3" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgJzDy" name="vJgJzDy" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzJzDy" name="vBzJzDy" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title text_l">输出频率</td>
				        <td colspan="6"><input type="text" id="vJcCsJzPl" name="vJcCsJzPl" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgJzPl" name="vJgJzPl" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzJzPl" name="vBzJzPl" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title" rowspan="2">3</td>
				        <td class="table-title" rowspan="2">模拟停电</td>
				        <td class="table-title text_l">输出电压</td>
				        <td colspan="2"><input type="text" id="vJcCsMnTdDy1" name="vJcCsMnTdDy1" autocomplete="off" class="layui-input"></td>
				        <td colspan="2"><input type="text" id="vJcCsMnTdDy2" name="vJcCsMnTdDy2" autocomplete="off" class="layui-input"></td>
				        <td colspan="2"><input type="text" id="vJcCsMnTdDy3" name="vJcCsMnTdDy3" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgMnTdDy" name="vJgMnTdDy" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzMnTdDy" name="vBzMnTdDy" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title text_l">输出电流</td>
				        <td colspan="2"><input type="text" id="vJcCsMnTdDl1" name="vJcCsMnTdDl1" autocomplete="off" class="layui-input"></td>
				        <td colspan="2"><input type="text" id="vJcCsMnTdDl2" name="vJcCsMnTdDl2" autocomplete="off" class="layui-input"></td>
				        <td colspan="2"><input type="text" id="vJcCsMnTdDl3" name="vJcCsMnTdDl3" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgMnTdDl" name="vJgMnTdDl" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzMnTdDl" name="vBzMnTdDl" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title" rowspan="2">4</td>
				        <td class="table-title" rowspan="2">电池放电</td>
				        <td class="table-title text_l">电池电压（稳定时）</td>
				        <td colspan="3"><input type="text" id="vJcCsFdDy1" name="vJcCsFdDy1" autocomplete="off" class="layui-input"></td>
				        <td colspan="3"><input type="text" id="vJcCsFdDy2" name="vJcCsFdDy2" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgFdDy" name="vJgFdDy" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzFdDy" name="vBzFdDy" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title text_l">电池电流（稳定时）</td>
				        <td colspan="3"><input type="text" id="vJcCsFdDl1" name="vJcCsFdDl1" autocomplete="off" class="layui-input"></td>
				        <td colspan="3"><input type="text" id="vJcCsFdDl2" name="vJcCsFdDl2" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgFdDl" name="vJgFdDl" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzFdDl" name="vBzFdDl" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title" rowspan="2">5</td>
				        <td class="table-title" rowspan="2">电池充电</td>
				        <td class="table-title text_l">充电电压</td>
				        <td colspan="3"><input type="text" id="vJcCsCdDy1" name="vJcCsCdDy1" autocomplete="off" class="layui-input"></td>
				        <td colspan="3"><input type="text" id="vJcCsCdDy2" name="vJcCsCdDy2" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgCdDy" name="vJgCdDy" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzCdDy" name="vBzCdDy" autocomplete="off" class="layui-input"></td>
				      </tr>
				      <tr>
				        <td class="table-title text_l">充电电流</td>
				        <td colspan="3"><input type="text" id="vJcCsCdDl1" name="vJcCsCdDl1" autocomplete="off" class="layui-input"></td>
				        <td colspan="3"><input type="text" id="vJcCsCdDl2" name="vJcCsCdDl2" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vJgCdDl" name="vJgCdDl" autocomplete="off" class="layui-input"></td>
				        <td><input type="text" id="vBzCdDl" name="vBzCdDl" autocomplete="off" class="layui-input"></td>
				      </tr>
				    </tbody>
			  	</table>
			  </div>
    	</div>
<!-- 		定制内容结束 -->
	    <div class="mid-content">
	        <table class="layui-hide" id="dhtable" lay-filter="ftable"></table>
	    </div>
	   	<th:block th:include="include :: pageFooter" /> 
        </form>
	</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: businessJS" />
<th:block th:include="include :: businessTableBtn" />
<th:block th:include="include :: inlineJS" />
<script type="text/javascript">
var $,layer,form,table,laydate,element;//定义layui模块
eachFields();//明细表格中的字段遍历
layui.use(['laydate', 'table','form','layer','jquery','util','element'], function () {
 	$ = layui.$,layer = layui.layer,form = layui.form,table = layui.table,laydate = layui.laydate,util = layui.util,element=layui.element;
 	beforeInit();//表单初始化之前的动作集合
 	layui.element.render();
 	$.get("/business/patrolrecord/listbynid?nid="+nid,function(data){
		$.each(data.data,function(k,v){
			dataStr.push(v);
		});
		initTable();//初始化表格
	});
	//赋值静态表格（主机测试）
 	$.each(t_fields,function(v,k){
 		$('#'+k.fields).val(k.fieldContent);
 	});
 	if(gridColumns.readOnly){//流程结束后静态表格变为不可编辑
 	 	$('table input').attr('readonly','readonly');
		$('table .canntEdit').removeClass('canntEdit');
 	}
	form.render();
	toolbarEvent();//通用表格头部工具栏事件监听
	toolEvent('ftable');//行event事件监听
	monitorSort();//监听排序——重载赋值渲染
})
</script>
</body>
</html>